package org.faradel.pharmapp.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.springframework.stereotype.Component;

/**
 * The persistent class for the Validation database table.
 * 
 */
@Entity
@Component
@Table(name = "Validation")
public class Validation implements Serializable
{
    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "validation_Id")
    private int validationId;

    @Column(name = "pharmaUser_Id")
    private int pharmaUserId;

    @Column(name = "last_modified")
    private Date lastModified;

    @Column(name = "sec_Answer")
    private String secAnswer;

    @Column(name = "security_Question")
    private String securityQuestion;

    @Column(name = "User_Last_Modified")
    private Integer userLastModified;

    @Column(name = "user_Name")
    private String userName;

    @Column(name = "authority")
    private String authority;

    public String getAuthority()
    {
        return authority;
    }

    public void setAuthority(String authority)
    {
        this.authority = authority;
    }

    @Column(name = "user_Password")
    private String userPassword;

    // bi-directional one-to-one association to PharmaUser
    @OneToOne
    @JoinColumn(name = "PharmaUser_Id")
    private PharmaUser pharmaUser;

    public Validation()
    {
    }

    public int getPharmaUserId()
    {
        return this.pharmaUserId;
    }

    public void setPharmaUserId(int pharmaUser_Id)
    {
        this.pharmaUserId = pharmaUser_Id;
    }

    public Date getLastModified()
    {
        return this.lastModified;
    }

    public void setLastModified(Date last_Modified)
    {
        this.lastModified = last_Modified;
    }

    public String getSecAnswer()
    {
        return this.secAnswer;
    }

    public void setSecAnswer(String sec_Answer)
    {
        this.secAnswer = sec_Answer;
    }

    public String getSecurityQuestion()
    {
        return this.securityQuestion;
    }

    public void setSecurityQuestion(String security_Question)
    {
        this.securityQuestion = security_Question;
    }

    public Integer getUserLastModified()
    {
        return this.userLastModified;
    }

    public void setUserLastModified(Integer userLastModified)
    {
        this.userLastModified = userLastModified;
    }

    public String getUserName()
    {
        return this.userName;
    }

    public void setUserName(String user_Name)
    {
        this.userName = user_Name;
    }

    public String getUserPassword()
    {
        return this.userPassword;
    }

    public void setUserPassword(String user_Password)
    {
        this.userPassword = user_Password;
    }

    public PharmaUser getPharmaUser()
    {
        return this.pharmaUser;
    }

    public void setPharmaUser(PharmaUser pharmaUser)
    {
        this.pharmaUser = pharmaUser;
    }

}